<?php
$task_detail_sql = "SELECT t.* , a.* , r.* FROM (tasks t LEFT JOIN assignment a ON t.Users_email=a.tasks_Users_email)LEFT JOIN reminder r ON t.Users_email=r.tasks_Users_email";
$result_details = mysql_query($task_detail_sql);

while ($row_details = mysql_fetch_array($result_details)) {
    $prefix = $row_details['prefix'];
    $fname = $row_details['fname'];
    $lname = $row_details['lname'];
    $designation = $row_details['designation'];
    $email = $row_details['email'];
    $telephone = $row_details['telephone'];
    $fax = $row_details['fax'];
    $picture = $row_details['picture'];
}
?>
<div>
    <h1>Task Type</h1>
    <h2>task Name</h2>
    <h3>Subject (if any)</h3>
    <div class="divider"></div>
    <p>Start day</p>
    <p>End Date</p>
    <div class="divider"></div>
    <div class="slider" data-role="slider">
    </div>
    <div>
        Details
    </div>
</div>